package com.it.travel.controller.admin;

import com.it.travel.service.admin.AdminIndexService;
import com.it.travel.vo.Params.PageParams;
import com.it.travel.vo.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/admin/index")
@CrossOrigin
public class AdminIndexController {
    @Resource
    private AdminIndexService adminIndexService;

    @GetMapping("")
    public Result<?> getInfo() {
//         adminUserService;
        Result<?> result = adminIndexService.getInfo();
        return result;
    }
}
